package com.alkaid.anime.service;

import com.alkaid.commons.entity.Coins;
import com.alkaid.commons.entity.Thumb;
import com.alkaid.commons.ex.UnknownErrorException;

/**
 * @author Kylin
 * 点赞
 */
public interface CoinsService {
    /**
     * 查询是否投币
     *
     * @param userId the user id
     *  @param animeId the anime id
     * @return the thumb
     * @throws UnknownErrorException the unknown error exception
     */
    Boolean getCoins(Long userId, Integer animeId) throws UnknownErrorException;

    /**
     * 投币
     *
     * @param select the select
     * @throws UnknownErrorException the unknown error exception
     */
    void setCoins(Coins select) throws UnknownErrorException;
}
